package com.bdqn.jpathymeleaf.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.jpathymeleaf.pojo.User;

import java.awt.print.Pageable;
import java.util.List;

public interface UserService {
    public User login(String username, String password);
    public int addUser(User user);
    public int deleteUser(Long usrId);
    public int updateUser(User user);
    public User getUer(Long usrId);
    public List<User> findAllUsers();
    public Page<User> findUsers(String username, Long roleId, Pageable pageable);
}
